package com.aaronprj.school.mbooks.uivo;

import java.util.ArrayList;
import java.util.List;

import com.aaronprj.common.web.uivo.BaseEntity;

public class UIUser extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	private String sessionId;
	private String userName;

	private String firstName;
	private String password;

	private String email;

	private String phoneNumber;
	
	private int role;
	private String roleName;
	private String course;
	
	private String address;
	private String postCode;
	
	private int unreadCount;
	private List<UIMessage> msgs = new ArrayList<UIMessage>();
	
	public void addUIMessage(UIMessage uimsg){
		msgs.add(uimsg);
	}
	
	public String getSessionId() {
		return sessionId;
	}
	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public int getRole() {
		return role;
	}
	public void setRole(int role) {
		this.role = role;
	}
	
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getCourse() {
		return course;
	}
	public void setCourse(String course) {
		this.course = course;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPostCode() {
		return postCode;
	}
	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}
	public List<UIMessage> getMsgs() {
		return msgs;
	}
	public void setMsgs(List<UIMessage> msgs) {
		this.msgs = msgs;
	}

	public int getUnreadCount() {
		return unreadCount;
	}

	public void setUnreadCount(int unreadCount) {
		this.unreadCount = unreadCount;
	}
	
	

}
